package com.zjw.socket.demo.starter.messageService;

import com.zjw.socket.demo.starter.messageService.service.IConnectSession;

import java.io.Serializable;

public class Message implements Serializable {
  private long messageId;

  private long fromId;

  private long toId;

  private int type;
  private int processStrategy;

  private long time;

  private byte[] bytes;

  /**
   * 此消息所属from通道
   */
  private IConnectSession chanel;

  public int getProcessStrategy() {
    return processStrategy;
  }

  public IConnectSession getFromChanel() {
    return chanel;
  }

  public void setChanel(IConnectSession chanel) {
    this.chanel = chanel;
  }

  public void setProcessStrategy(int processStrategy) {
    this.processStrategy = processStrategy;
  }

  public long getMessageId() {
    return messageId;
  }

  public void setMessageId(long messageId) {
    this.messageId = messageId;
  }

  public long getFromId() {
    return fromId;
  }

  public void setFromId(long fromId) {
    this.fromId = fromId;
  }

  public long getToId() {
    return toId;
  }

  public void setToId(long toId) {
    this.toId = toId;
  }

  public int getType() {
    return type;
  }

  public void setType(int type) {
    this.type = type;
  }

  public long getTime() {
    return time;
  }

  public void setTime(long time) {
    this.time = time;
  }

  public byte[] getBytes() {
    return bytes;
  }

  public void setBytes(byte[] bytes) {
    this.bytes = bytes;
  }
}
